package com.hjq.demo.http.api;

import com.hjq.http.config.IRequestApi;

import java.util.List;

/**
 * author : Android 轮子哥
 * github : https://github.com/getActivity/AndroidProject
 * time   : 2019/12/07
 * desc   : 获取客户列表
 */
public final class UserListApi implements IRequestApi {

    @Override
    public String getApi() {
        return "user/user/list1";
    }

    /** 每页显示数量 */
    private String pageSize;
    /**  第几页*/
    private String pageNum;
    /** 搜索名称可为空 */
    private String username;

    /** 搜索手机号 */
    private String phoneNumber;


    public UserListApi setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
        return this;
    }


    public UserListApi setPageSize(String pageSize) {
        this.pageSize = pageSize;
        return this;
    }



    public UserListApi setPageNum(String pageNum) {
        this.pageNum = pageNum;
        return this;
    }



    public UserListApi setUsername(String username) {
        this.username = username;
        return this;
    }



    public final class Bean {
        private int total;
        private List<RowsBean> rows;
        private int code;
        private String message;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<RowsBean> getRows() {
            return rows;
        }

        public void setRows(List<RowsBean> rows) {
            this.rows = rows;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public class RowsBean {
            private Object searchValue;
            private String createBy;
            private Object createTime;
            private String updateBy;
            private Object updateTime;
            private Object remark;
            private ParamsBean params;
            private int id;
            private String username;
            private String address;
            private String phoneNumber;
            private String createdTime;
            private String updatedTime;
            private Boolean isSelect ;
            public Boolean getSelect() {
                return isSelect;
            }

            public void setSelect(Boolean select) {
                isSelect = select;
            }

            public Object getSearchValue() {
                return searchValue;
            }

            public void setSearchValue(Object searchValue) {
                this.searchValue = searchValue;
            }

            public String getCreateBy() {
                return createBy;
            }

            public void setCreateBy(String createBy) {
                this.createBy = createBy;
            }

            public Object getCreateTime() {
                return createTime;
            }

            public void setCreateTime(Object createTime) {
                this.createTime = createTime;
            }

            public String getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(String updateBy) {
                this.updateBy = updateBy;
            }

            public Object getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(Object updateTime) {
                this.updateTime = updateTime;
            }

            public Object getRemark() {
                return remark;
            }

            public void setRemark(Object remark) {
                this.remark = remark;
            }

            public ParamsBean getParams() {
                return params;
            }

            public void setParams(ParamsBean params) {
                this.params = params;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getPhoneNumber() {
                return phoneNumber;
            }

            public void setPhoneNumber(String phoneNumber) {
                this.phoneNumber = phoneNumber;
            }

            public String getCreatedTime() {
                return createdTime;
            }

            public void setCreatedTime(String createdTime) {
                this.createdTime = createdTime;
            }

            public String getUpdatedTime() {
                return updatedTime;
            }

            public void setUpdatedTime(String updatedTime) {
                this.updatedTime = updatedTime;
            }

            public class ParamsBean {
            }
        }
    }
}